package cn.net.xyan.yypt.service

import cn.net.xyan.blossom.kotlin.logger
import javax.jws.WebParam
import javax.jws.WebMethod
import javax.jws.WebResult
import javax.jws.WebService

//@WebService(targetNamespace = "http://service.ws.sample/", name = "Hello")
//interface Hello {
//
//    @WebResult(name = "return", targetNamespace = "")
//    //@RequestWrapper(localName = "sayHello", targetNamespace = "http://service.ws.sample/", className = "sample.ws.service.SayHello")
//    @WebMethod(action = "urn:SayHello")
//    //@ResponseWrapper(localName = "sayHelloResponse", targetNamespace = "http://service.ws.sample/", className = "sample.ws.service.SayHelloResponse")
//    fun sayHello(@WebParam(name = "myname", targetNamespace = "") myname: String): String
//}
//
//@javax.jws.WebService(serviceName = "HelloService", portName = "HelloPort", targetNamespace = "http://service.ws.sample/", endpointInterface = "Hello")
//class HelloPortImpl : Hello {
//    override fun sayHello(myname: String): String {
//        logger.info("Executing operation sayHello" + myname)
//        try {
//            return "Hello, Welcome to CXF Spring boot $myname!!!"
//
//        } catch (ex: java.lang.Exception) {
//            ex.printStackTrace()
//            throw RuntimeException(ex)
//        }
//
//    }
//}